const express = require('express');
const {Schema,model}=require('mongoose');
const contentSchema=new Schema({
aTitle:String,
author:String,
Fclass:{type:Schema.Types.ObjectId,ref:'aritcleMod'},
Content:String,
img:String,
table:String,
Collection:{
type:Boolean,
default:false,
},
ThumbsUp:{
type:Boolean,
default:false,
},
createTime: {
  type: Date,
  default: Date.now
}
},{versionKey:false});

const contentMod=model('contentMod',contentSchema,'aritcle');
module.exports.contentMod=contentMod;